package cn.rkylin.oms.system.shop.vo;

import cn.rkylin.oms.system.shop.domain.ShopStor;

/**
 * 店铺仓库值对象
 */
public class ShopStorVO extends ShopStor {

    /*
     * 店铺仓库编辑按钮
     */
    private static final String OPERATION_BTN_EDIT = "<button shopid=\"%s\" type=\"button\" class=\"btn btn-info btn-xs btnEditShopStor\">修改</button>&nbsp;&nbsp;";

    /**
     * 店铺仓库删除按钮
     */
    private static final String OPERATION_BTN_DELETE = "<button shopid=\"%s\" type=\"button\" class=\"btn btn-danger btn-xs btnDeleteShopStor\">删除</button>";

    /**
     * 操作按钮
     */
    private String operation;

    private String storType;

    /**
     * 查询条件：shopId
     */
    private String whereShopId;
    
    public String getOperation() {
        return this.operation;
    }

    public void setOperation(String operation) {
        this.operation = String.format(OPERATION_BTN_EDIT, getShopId());
        this.operation += String.format(OPERATION_BTN_DELETE, getShopId());
    }

    public String getWhereShopId() {
        return whereShopId;
    }

    public void setWhereShopId(String whereShopId) {
        this.whereShopId = whereShopId;
    }

    public String getStorType() {
        return storType;
    }

    public void setStorType(String storType) {
        this.storType = storType;
    }
    
    private String CHCBOX_STRING= "<input type='checkbox' class='icheck' id='%s'/>";
    /**
     * 复选框
     */
    private String chkbox;

    public String getChkbox() {
        return chkbox;
    }

    public void setChkbox(String chkbox) {
        this.chkbox = String.format(CHCBOX_STRING, getShopStorId());;
    }
}
